<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>自定义TabHost，TabWidget样式 . - west8623的专栏 - 博客频道 - CSDN.NET</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="大家好，今天我为大家分享TabHost中怎样修改TabWidget样式。在很多界面美观的应用中很多都用到了TabHost，但他们要比系统默认的要漂亮得多。先看几张图：&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;京东商城底部菜单栏&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 新浪微博底部菜单栏&#160; &#160;好了，看到这些漂亮的菜单栏是不是很惊讶，你可能会说" />
<script src="http://static.blog.csdn.net/scripts/jquery.js" type="text/javascript"></script>
<script src="http://static.blog.csdn.net/scripts/plugins.js" type="text/javascript"></script>
<script src="http://static.blog.csdn.net/scripts/common.js" type="text/javascript"></script>
<link rel="Stylesheet" type="text/css" href="http://static.blog.csdn.net/skin/default/css/style.css" />
<link id="RSSLink" title="RSS" type="application/rss+xml" rel="alternate" href="/west8623/rss/list" />
<link rel="shortcut icon" href="/favicon.ico" />
<link type="text/css" rel="stylesheet" href="http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/default.css" />
</head>
<body>
<script src="http://csdnimg.cn/pubnav/js/pub_topnav_2011.js"type="text/javascript"></script>
<div id="container">
<div id="header">
    <div class="header">
        <div id="blog_title">
            <h1><a href="/west8623">west8623的专栏</a></h1>
            <h2></h2>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
</div>
<div id="navigator">
    <div class="navigator_bg"></div>
    <div class="navigator">
        <ul>
            <li id="btnContents"><a href="/west8623?viewmode=contents"><span><img src="http://static.blog.csdn.net/images/ico_list.gif">目录视图</span></a></li>
            <li id="btnView"><a href="/west8623?viewmode=list"><span><img src="http://static.blog.csdn.net/images/ico_summary.gif">摘要视图</span></a></li>
            <li id="btnRss"><a href="/west8623/rss/list"><span><img src="http://static.blog.csdn.net/images/ico_rss.gif">订阅</span></a></li>
</ul>
    </div>
</div>
<script type="text/javascript">
    var username = "west8623";
    var blog_address = "http://blog.csdn.net/west8623";
    var static_host = "http://static.blog.csdn.net";
    var currentUserName = "";
</script>
        
<div id="body">
<div id="main">
<div class="main">
<div class="notice"> 

<a href="http://blog.csdn.net/csdnproduct/article/details/7863031" target="_blank">
<font color=red>新版论坛系列介绍之二——功能介绍篇</font></a>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;


<a href="http://blog.csdn.net/blogdevteam/article/details/7863508"target="_blank">
<font color=red>2012 SDCC门票社区团购火热开启！</font></a>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;


<a href="http://blog.csdn.net/csdnproduct/article/details/7868152"target="_blank">
<font color=red>公告：CSDN博客频道博客搬家功能上线！</font></a>

<br />

<a href="http://mdcc.csdn.net "target="_blank">
<font color=blue>移动盛会强档来袭，参会套票全线秒杀！ 
 </font></a>

&nbsp;&nbsp;


<a href="http://blog.csdn.net/blogdevteam/article/details/7867718"target="_blank">
<font color=red>没有重量只有质量：iPad版《程序员杂志》应用上线 </font></a>

&nbsp;&nbsp;


<a href="http://blog.csdn.net/blogdevteam/article/details/7838383"target="_blank">
<font color=blue>“我最喜欢的技术博客”获奖公布！ </font></a>

</div><script type="text/javascript" src="http://static.blog.csdn.net/scripts/ad.js"></script>

<div id="article_details" class="details">
    <div class="article_title">
    <span class="ico ico_type_Repost"></span>
    <h3>
        <span class="link_title"><a href="/west8623/article/details/7453814">
        自定义TabHost，TabWidget样式 .
        </a></span>
    </h3>
</div>

        
    <div class="article_manage">
        <span class="link_categories">
        分类：
            <a href="/west8623/article/category/1099756">Android</a> 
        </span>
    <span class="link_postdate">2012-04-12 14:48</span>
    <span class="link_view" title="阅读次数">2028人阅读</span>
    <span class="link_comments" title="评论次数"><a href="#comments">评论</a>(1)</span>
    <span class="link_collect"><a href="javascript:void(0);" onclick="javascript:collectArticle('自定义TabHost，TabWidget样式 .','7453814');return false;" title="收藏">收藏</a></span>
    <span class="link_report"><a href="#report"  onclick="javascript:report(7453814,2);return false;" title="举报">举报</a></span>
    
</div>

    
<div id="article_content" class="article_content">

大家好，今天我为大家分享TabHost中怎样修改TabWidget样式。在很多界面美观的应用中很多都用到了TabHost，但他们要比系统默认的要漂亮得多。先看几张图：
<p><img alt="" src="http://hi.csdn.net/attachment/201108/6/0_13125983459O50.gif"><br>
</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;京东商城底部菜单栏</p>
<p><img alt="" src="http://hi.csdn.net/attachment/201108/6/0_1312598407fbNd.gif"><br>
</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 新浪微博底部菜单栏</p>
<p>&nbsp; &nbsp;好了，看到这些漂亮的菜单栏是不是很惊讶，你可能会说用Button就可以实现啊 ，可是用Button的话控制显示的内容很麻烦，不如用TabHost控制效率更高。很想知道用TabHost是怎么实现的吧，下面就来研究如何实现这种漂亮的TabHost。先看一下效果图：</p>
<p>&nbsp;<img alt="" src="http://hi.csdn.net/attachment/201108/6/0_131259868169j7.gif"></p>
<p>界面比较简单，要想做得漂亮换几张图片就可以了。</p>
<p>&nbsp; 第一步：先在布局（这里用了main.xml创建时自动生成的）里面放上TabHost ，只要将TabHost控件托至屏幕中就可：</p>
<pre class="html" name="code">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
    &lt;TabHost android:id=&quot;@+id/tabhost&quot; 
      android:layout_width=&quot;fill_parent&quot; 
      android:layout_height=&quot;fill_parent&quot; 
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
        &lt;LinearLayout android:layout_width=&quot;fill_parent&quot; 
          android:id=&quot;@+id/linearLayout1&quot; 
          android:layout_height=&quot;fill_parent&quot; 
          android:orientation=&quot;vertical&quot;&gt;
            &lt;TabWidget android:layout_width=&quot;fill_parent&quot; 
              android:layout_height=&quot;wrap_content&quot; 
              android:id=&quot;@android:id/tabs&quot;&gt;&lt;/TabWidget&gt;
            &lt;FrameLayout android:layout_width=&quot;fill_parent&quot; android:layout_height=&quot;fill_parent&quot; android:id=&quot;@android:id/tabcontent&quot;&gt;
                &lt;LinearLayout android:layout_width=&quot;fill_parent&quot; android:layout_height=&quot;fill_parent&quot; android:id=&quot;@+id/tab1&quot;&gt;&lt;/LinearLayout&gt;
                &lt;LinearLayout android:layout_width=&quot;fill_parent&quot; android:layout_height=&quot;fill_parent&quot; android:id=&quot;@+id/tab2&quot;&gt;&lt;/LinearLayout&gt;
                &lt;LinearLayout android:layout_width=&quot;fill_parent&quot; android:layout_height=&quot;fill_parent&quot; android:id=&quot;@+id/tab3&quot;&gt;&lt;/LinearLayout&gt;
            &lt;/FrameLayout&gt;
        &lt;/LinearLayout&gt;
    &lt;/TabHost&gt;</pre>
<p><br>
这里我们已经把LinearLayout和TextView去掉了，并将“xmlns:android=&quot;……&quot; ”添加大TabHost里了，这里要注意我们将TabHost的id定义为自己定义的id比不用android规定的id=&quot;@android:id/tabhost&quot;。
</p>
<p></p>
<p>第二步：创建显示此TabWidget的布局tabmini.xml：</p>
<pre class="html" name="code">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;  
    android:layout_width=&quot;fill_parent&quot;
    android:layout_height=&quot;40dp&quot;
    android:paddingLeft=&quot;5dip&quot;
    android:paddingRight=&quot;5dip&quot;
    android:background=&quot;@drawable/head_bg&quot;&gt;  
    
    &lt;TextView android:id=&quot;@+id/tab_label&quot;  
        android:layout_width=&quot;fill_parent&quot;
        android:layout_height=&quot;wrap_content&quot;
        android:layout_centerInParent=&quot;true&quot;
        android:gravity=&quot;center&quot;
        android:textColor=&quot;#000000&quot;
        android:textStyle=&quot;bold&quot;
        android:background=&quot;@drawable/tabmini&quot;/&gt; 
&lt;/RelativeLayout&gt;</pre>
<p><br>
第三步：创建一个selector在drawable里面 命名tabmini.xml，用来点击TabHost的一个tab时TextView的变化：</p>
<pre class="html" name="code">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;selector
  xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
    &lt;item android:state_selected=&quot;true&quot;
        android:drawable=&quot;@drawable/add_managebg_down&quot;/&gt;
    &lt;item android:state_selected=&quot;false&quot;
        android:drawable=&quot;@drawable/add_managebg&quot;/&gt;
&lt;/selector&gt;</pre>
<p><br>
第四步：在Activity里实现TabHost：</p>
<pre class="java" name="code">package cn.li.tabstyle;

import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TabHost;
import android.widget.TextView;

public class TabHostStyleActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        View niTab = (View) LayoutInflater.from(this).inflate(R.layout.tabmini, null);
        TextView text0 = (TextView) niTab.findViewById(R.id.tab_label);
        text0.setText(&quot;ni&quot;);
        
        View woTab = (View) LayoutInflater.from(this).inflate(R.layout.tabmini, null);
        TextView text1 = (TextView) woTab.findViewById(R.id.tab_label);
        text1.setText(&quot;wo&quot;);
        
        View taTab = (View) LayoutInflater.from(this).inflate(R.layout.tabmini, null);
        TextView text2 = (TextView) taTab.findViewById(R.id.tab_label);
        text2.setText(&quot;ta&quot;);
        
        View weTab = (View) LayoutInflater.from(this).inflate(R.layout.tabmini, null);
        TextView text3 = (TextView) weTab.findViewById(R.id.tab_label);
        text3.setText(&quot;we&quot;);
        
        TabHost tabHost = (TabHost)findViewById(R.id.tabhost);
        tabHost.setup();   //Call setup() before adding tabs if loading TabHost using findViewById(). 
        
        tabHost.addTab(tabHost.newTabSpec(&quot;nitab&quot;).setIndicator(niTab).setContent(R.id.tab1));
        tabHost.addTab(tabHost.newTabSpec(&quot;wotab&quot;).setIndicator(woTab).setContent(R.id.tab2));
        tabHost.addTab(tabHost.newTabSpec(&quot;tatab&quot;).setIndicator(taTab).setContent(R.id.tab3));
        tabHost.addTab(tabHost.newTabSpec(&quot;wetab&quot;).setIndicator(weTab).setContent(R.id.tab4));
    }
}</pre>
<p><br>
这里我们用findViewById创建了TabHost，这样的话我们就需要在添加tab时调用TabHost的setup()方法；这里我们添加内容时添加的是布局，我们完全可以换成自己创建的Activity。</p>
<p>好了，让我们来看看运行效果吧：</p>
<p><img alt="" src="http://hi.csdn.net/attachment/201108/6/0_1312600248wJBB.gif"><br>
<br>
</p>
<p>好了，我们自定义的TabHost算是结束了。不过看到Activity里的代码很多都是重复的我们可以这样把他们简化：</p>
<pre class="java" name="code">package cn.li.tabstyle;

import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TabHost;
import android.widget.TextView;

public class TabHostStyleActivity extends Activity {
    /** Called when the activity is first created. */
	String[] title = new String[]{&quot;ni&quot;,&quot;wo&quot;,&quot;ta&quot;,&quot;we&quot;};
	View userTab,articeTab,feedTab,weTab;
	View[] tabs = new View[]{userTab,articeTab,feedTab,weTab};
	int[] tabIds = new int[]{R.id.tab1,R.id.tab2,R.id.tab3,R.id.tab4};
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        TabHost tabHost = (TabHost)findViewById(R.id.tabhost);
        tabHost.setup();   //Call setup() before adding tabs if loading TabHost using findViewById(). 
        
        for(int i=0;i&lt;tabs.length;i++){
        	tabs[i] = (View) LayoutInflater.from(this).inflate(R.layout.tabmini, null);
            TextView text = (TextView) tabs[i].findViewById(R.id.tab_label);
            text.setText(title[i]);            
            tabHost.addTab(tabHost.newTabSpec(title[i]).setIndicator(tabs[i]).setContent(tabIds[i]));
        }
    }
}</pre>
<p><br>
&nbsp;</p>

</div>
<div class="share_buttons" id="sharePanel"></div>
<!--192.168.1.237-->
<div class="article_next_prev">
    <li class="prev_article"><span>上一篇：</span><a href="/west8623/article/details/7421567">详解Android中AsyncTask的使用</a></li>
    <li class="next_article"><span>下一篇：</span><a href="/west8623/article/details/7453848">新浪微博布局学习——妙用TabHost</a></li>
</div>


    
</div>
<div id="ad_cen"></div>
<script type="text/javascript">
    new Ad(4, 'ad_cen');
</script>
<div id="comment_title" class="panel_head">查看评论<a name="comments"></a></div>
<div id="comment_list"></div>
<div id="comment_bar"></div>
<div id="comment_form"></div>
<div class="announce">* 以上用户言论只代表其个人观点，不代表CSDN网站的观点或立场<a name="reply"></a><a name="quote"></a></div>
<script type="text/javascript">
    var fileName = '7453814';
    var commentscount = 1;
    var islock = false
</script>
<script type="text/javascript" src="http://static.blog.csdn.net/scripts/comment.js?v=1.3"></script>
<div id="ad_bot"></div>
<script type="text/javascript">
    new Ad(5, 'ad_bot');
</script>
<div id="report_dialog"></div>


<div class="clear"></div>
</div>
</div>

<div id="side">
<div class="side">
<div id="panel_Profile" class="panel">
    <ul class="panel_head"><span>个人资料</span></ul>
    <ul class="panel_body profile">
        <div id="blog_userface">
            <a href="http://my.csdn.net/west8623" target="_blank">
            <img src="http://avatar.csdn.net/8/6/F/1_west8623.jpg" title="访问我的空间" style="max-width:90%"/>
            </a>
            <br />
            <span><a href="http://my.csdn.net/west8623" target="_blank">west8623</a></span>
        </div>
<div class="interact">
<!--<a href="#" class="attented" title="已关注"></a>-->
<a href="#" class="attent" id="span_add_follow" title="[加关注]"></a>
<a href="http://my.csdn.net/my/letter/send/west8623" class="letter" title="[发私信]"></a>
</div>
        <div id="blog_medal">
        </div>
        <ul id="blog_rank">
            <li>访问：<span>5370次</span></li>
            <li>积分：<span>166分</span></li>
            <li>排名：<span>千里之外</span></li>
        </ul>
        <ul id="blog_statistics">
            <li>原创：<span>5篇</span></li>
            <li>转载：<span>38篇</span></li>
            <li>译文：<span>0篇</span></li>
            <li>评论：<span>3条</span></li>
        </ul>
    </ul>
</div>
<script type="text/javascript">
    var _blogger = 'west8623';
</script>
<script type='text/javascript'>
$(document).ready(function () {
    var un = getUN().toLowerCase();
    if (un == _blogger.toLowerCase()) {
        $('.interact').hide();
    } else if(un) {
        var url = "http://my.csdn.net/index.php/follow/check_is_followed/" + encodeURIComponent(un) + "/" + encodeURIComponent(_blogger) + "?jsonpcallback=?";
        $.getJSON(url, {}, function (data) {
            if (data.succ == 1 && data.info == 1) {
                $('#span_add_follow').attr('class', 'attented');
            } else {
                $('#span_add_follow').click(guanzhu);
            }
        }, 'json');
    }
});
function guanzhu() {
    var url = "http://my.csdn.net/index.php/follow/do_follow?jsonpcallback=?";
    $.getJSON(url, { "username": _blogger }, function (data) {
        if (data.succ == 1) {
            alert('关注成功！');
            $('#span_add_follow').attr('class', 'attented').click(function () { return false; });
        } else {
            alert(data.msg);
        }
    });
    return false;
}
function getUN() {
    var m = document.cookie.match(new RegExp("(^| )UserName=([^;]*)(;|$)"));
    if (m) return m[2];
    else return '';
}
</script>

<div class="panel" id="panel_Search">
    <ul class="panel_head"><span>文章搜索</span></ul>
    <ul class="panel_body">
        <form id="frmSearch" action="http://so.csdn.net/search" class="form_search" target="_blank">
        <span><input id="inputSearch" type="text" class="blogsearch" title="请输入关键字" /></span>
        <input id="btnSubmit" type="submit" value="搜索" title="search in blog" />
        <input type="hidden" name="q" id="inputQ" />
        <input type="hidden" name="t" value="blog" />
        <a id="btnSearchBlog" target="_blank"></a>
        </form>
    </ul>
</div><div id="panel_Category" class="panel">
    <ul class="panel_head"><span>文章分类</span></ul>
    <ul class="panel_body">
        <li>
        <a href="http://blog.csdn.net/west8623/article/category/1099759">J2EE</a><span>(6)</span>
        </li>
        <li>
        <a href="http://blog.csdn.net/west8623/article/category/1099756">Android</a><span>(27)</span>
        </li>
        <li>
        <a href="http://blog.csdn.net/west8623/article/category/1122584">Android_UI</a><span>(1)</span>
        </li>
        <li>
        <a href="http://blog.csdn.net/west8623/article/category/1099758">Java SE</a><span>(6)</span>
        </li>
        <li>
        <a href="http://blog.csdn.net/west8623/article/category/1147418">PhoneGap</a><span>(3)</span>
        </li>
        <li>
        <a href="http://blog.csdn.net/west8623/article/category/1148029">Jq.Mobi</a><span>(1)</span>
        </li>
    </ul>
</div><div id="panel_Archive" class="panel">
    <ul class="panel_head"><span>文章存档</span></ul>
    <ul class="panel_body">
        <div id="archive_list">
        <!--归档统计-->
        <li><a href="http://blog.csdn.net/west8623/article/month/2012/06">2012年06月</a><span>(8)</span></li><li><a href="http://blog.csdn.net/west8623/article/month/2012/05">2012年05月</a><span>(14)</span></li><li><a href="http://blog.csdn.net/west8623/article/month/2012/04">2012年04月</a><span>(14)</span></li><li><a href="http://blog.csdn.net/west8623/article/month/2012/03">2012年03月</a><span>(7)</span></li>
        </div>
    </ul>
</div>
<div id="hotarticls" class="panel">
    <ul class="panel_head"><span>阅读排行</span></ul>
    <ul class="panel_body itemlist">
        <li>
            <a href="/west8623/article/details/7453814" title="自定义TabHost，TabWidget样式 .">自定义TabHost，TabWidget样式 .</a><span>(2028)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7572207" title="jQMobi API 函数(中英文对照）">jQMobi API 函数(中英文对照）</a><span>(548)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7481895" title="TabWidget去除底部下划线">TabWidget去除底部下划线</a><span>(365)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7453848" title="新浪微博布局学习——妙用TabHost">新浪微博布局学习——妙用TabHost</a><span>(217)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7454047" title="Andorid 中使用Https/SSL Apache HttpClient(DefaultHttpClient)">Andorid 中使用Https/SSL Apache HttpClient(DefaultHttpClient)</a><span>(184)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7553109" title="将上传文件保存到指定目录的一个java源代码">将上传文件保存到指定目录的一个java源代码</a><span>(158)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7640358" title="Android简历">Android简历</a><span>(156)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7523280" title="Android开发网上的一些重要知识点">Android开发网上的一些重要知识点</a><span>(130)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7553655" title="上传图片并保存到数据库里的servlet代码和jsp代码( 上传图片比实际图片大时，可以用此方法)">上传图片并保存到数据库里的servlet代码和jsp代码( 上传图片比实际图片大时，可以用此方法)</a><span>(129)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7469916" title="Android UI草图设计器–Pencil">Android UI草图设计器–Pencil</a><span>(124)</span>
        </li>
    </ul>
</div>
<div id="hotarticls2" class="panel">
    <ul class="panel_head"><span>评论排行</span></ul>
    <ul class="panel_body itemlist">
        <li>
            <a href="/west8623/article/details/7481895" title="TabWidget去除底部下划线">TabWidget去除底部下划线</a><span>(1)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7453814" title="自定义TabHost，TabWidget样式 .">自定义TabHost，TabWidget样式 .</a><span>(1)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7572207" title="jQMobi API 函数(中英文对照）">jQMobi API 函数(中英文对照）</a><span>(1)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7642430" title="android BindService介绍">android BindService介绍</a><span>(0)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7579279" title="Java数组排序总结（冒泡，选择，插入，希尔）">Java数组排序总结（冒泡，选择，插入，希尔）</a><span>(0)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7572531" title="Android ListView 之效率优化">Android ListView 之效率优化</a><span>(0)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7571779" title="PhoneGap API介绍：Device">PhoneGap API介绍：Device</a><span>(0)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7569616" title="PhoneGap开发手机程序入门教程">PhoneGap开发手机程序入门教程</a><span>(0)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7569607" title="PhoneGap开发手机程序入门教程">PhoneGap开发手机程序入门教程</a><span>(0)</span>
        </li>
        <li>
            <a href="/west8623/article/details/7569446" title="Android 内存泄漏调试">Android 内存泄漏调试</a><span>(0)</span>
        </li>
    </ul>
</div>
<div id="homepageArticles" class="panel">
    <ul class="panel_head"><span>推荐文章</span></ul>
    <ul class="panel_body" id="ad_commend">
    </ul>
</div>
<script type="text/javascript" src="http://static.blog.csdn.net/scripts/ad.js"></script>
<script type="text/javascript">
    new Ad(12, 'ad_commend');
</script><div id="newcomments" class="panel">
<ul class="panel_head"><span>最新评论</span></ul>
<ul class="panel_body itemlist">
    <li>
    <a href="/west8623/article/details/7453814#comments">自定义TabHost，TabWidget样式 .</a>
    <p style="margin:0px;">jcs12311:
感谢楼主哦
    </p>
    </li>
    <li>
    <a href="/west8623/article/details/7481895#comments">TabWidget去除底部下划线</a>
    <p style="margin:0px;">befrore_android:
请问R.drawable.no是什么图片？ 如果您是转的，麻烦告诉下原址
    </p>
    </li>
    <li>
    <a href="/west8623/article/details/7572207#comments">jQMobi API 函数(中英文对照）</a>
    <p style="margin:0px;">style126:
以上内容为本人翻译（DrmFly）：:请以链接形式注明原文链接：http://www.appmobi...
    </p>
    </li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>

<div class="clear"></div>
</div>
<script type="text/javascript" src="http://static.blog.csdn.net/scripts/SyntaxHighlighter/shCore-src.js"></script>
<script type="text/javascript" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.js"></script>
<script type="text/javascript" src="http://static.blog.csdn.net/scripts/article_code.js"></script>

<script type="text/javascript" src="http://medal.blog.csdn.net/scripts/show.js"></script>
<script type="text/javascript" src="http://medal.blog.csdn.net/showblogmedal.ashx?blogid=817346"></script>
<script type="text/javascript">document.write("<img src=http://counter.csdn.net/pv.aspx?id=24 border=0 width=0 height=0>");</script>

<script type="text/javascript" src="http://csdnimg.cn/pubfooter/js/publib_footer.js"></script>

<script type="text/javascript" src="http://www.csdn.net/ui/scripts/Csdn/counter.js"></script>

<!--ad.csdn.net-->
<script type="text/javascript" src="http://ad.csdn.net/scripts/ad-blog.js"></script>



</div>
</body>
</html>